package cn.cheln.support.images;

import android.content.Context;
import android.widget.ImageView;
import cn.cheln.explorer.beans.FileInfo;

public class FileIconHelper
{
  private FileIconLoader mIconLoader;

  public FileIconHelper(Context paramContext)
  {
    this.mIconLoader = new FileIconLoader(paramContext);
  }

  public void setIcon(FileInfo paramFileInfo, ImageView paramImageView)
  {
    FileTypeInfo localFileTypeInfo;
    boolean bool;
    String str = paramFileInfo.path;
    long l = paramFileInfo.dbId;
    if (paramFileInfo.isForceDir())
    {
      localFileTypeInfo = new FileTypeInfo(FileCategoryHelper.FileCategory.Folder, FileInfo.iconDir, null);
      label34: FileCategoryHelper.FileCategory localFileCategory = localFileTypeInfo.fc;
      this.mIconLoader.cancelRequest(paramImageView);
      int i = $SWITCH_TABLE$cn$cheln$support$images$FileCategoryHelper$FileCategory()[localFileCategory.ordinal()];
      bool = false;
      switch (i)
      {
      case 5:
      case 6:
      case 7:
      default:
      case 2:
      case 3:
      case 4:
      case 8:
      }
    }
    while (true)
    {
      if (!(bool))
        paramImageView.setImageBitmap(localFileTypeInfo.defaultBg);
      return;
      localFileTypeInfo = FileCategoryHelper.getCategoryFromPath(str);
      break label34:
      if (paramFileInfo.thumbnailPath != null);
      bool = this.mIconLoader.loadIcon(paramImageView, paramFileInfo.path, l, localFileTypeInfo);
    }
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     cn.cheln.support.images.FileIconHelper
 * JD-Core Version:    0.5.2
 */